package com.camera.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.unit.DataSize;

import java.nio.file.Path;
import java.util.List;

/**
 * @Classname StorageProperties
 * @Description TODO
 * @Date 2025/3/10 14:08
 * @Created by xxx
 */
@Configuration
@ConfigurationProperties(prefix = "file.storage")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StorageProperties {
    private String path;
    private DataSize maxSize;
    private List<String> allowedExtensions;
    private String requestUrl;
    private boolean enableSaveFile;
}
